import { request } from '@umijs/max';

export const queryChannelList =async () =>
 await request('/channel/list', {
    method: 'GET',
  });

export const createChannel = async(data: { name: string }) =>
 await request('/channel/create', {
    method: 'POST',
    data,
  });
